package BasicCmIRPConstDefs;
/**
 * Generated from IDL enum "DeleteErrorCategory".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class DeleteErrorCategory
	implements org.omg.CORBA.portable.IDLEntity
{
	private int value = -1;
	public static final int _SUBORDINATE_OBJECT = 0;
	public static final DeleteErrorCategory SUBORDINATE_OBJECT = new DeleteErrorCategory(_SUBORDINATE_OBJECT);
	public static final int _DELETE_NOT_ALLOWED = 1;
	public static final DeleteErrorCategory DELETE_NOT_ALLOWED = new DeleteErrorCategory(_DELETE_NOT_ALLOWED);
	public static final int _DELETE_FAILED = 2;
	public static final DeleteErrorCategory DELETE_FAILED = new DeleteErrorCategory(_DELETE_FAILED);
	public int value()
	{
		return value;
	}
	public static DeleteErrorCategory from_int(int value)
	{
		switch (value) {
			case _SUBORDINATE_OBJECT: return SUBORDINATE_OBJECT;
			case _DELETE_NOT_ALLOWED: return DELETE_NOT_ALLOWED;
			case _DELETE_FAILED: return DELETE_FAILED;
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	public String toString()
	{
		switch (value) {
			case _SUBORDINATE_OBJECT: return "SUBORDINATE_OBJECT";
			case _DELETE_NOT_ALLOWED: return "DELETE_NOT_ALLOWED";
			case _DELETE_FAILED: return "DELETE_FAILED";
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	protected DeleteErrorCategory(int i)
	{
		value = i;
	}
	java.lang.Object readResolve()
	throws java.io.ObjectStreamException
	{
		return from_int(value());
	}
}
